<%@ page language="java" contentType="text/html" pageEncoding="utf-8"%>
<%@include file="/WEB-INF/pages/common/common.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <%@include file="/WEB-INF/pages/common/head.jsp"%>
    <%@include file="/resources/datepicker/datepicker.jsp"%>
    <script type="text/javascript">
        function search_() {
            document.forms[0].submit();
        }
    </script>
</head>
<body class="easyui-layout">
<form action="${path}/business/ipic_system/worst_supplier/listUI.do">
<div data-options="region:'north'" style="overflow: hidden;height: 55px;">
    <div class="datagrid-toolbar" style="height: auto">
        <fieldset>
            <legend><spring:message code="label.condition"/></legend>
            <table id="tableForm" width="100%">
                <tr>
                    <td align="right"><spring:message code="label.year"/>：</td>
                    <td>
                        <input type="text" name="year" value="${entity.year}"
                               onFocus="WdatePicker({isShowClear:false,isShowToday:false,dateFmt:'yyyy',readOnly:true})" class="Wdate"/>
                    </td>
                    <td align="right"><spring:message code="label.month"/>：</td>
                    <td>
                        <input type="text" name="month" value="${entity.month}"
                               onFocus="WdatePicker({isShowClear:false,isShowToday:false,dateFmt:'MM',readOnly:true})" class="Wdate"/>
                    </td>
                    <td align="right">
                        <a class="easyui-linkbutton" href="javascript:void(0);" iconCls="icon-search" onclick="search_();"><spring:message code="bar.command.search"/></a>
                    </td>
                </tr>
            </table>
        </fieldset>
    </div>
</div>
<div data-options="region:'center'">
    <br/>
    <br/>
    <table class="mytable" width="100%;">
        <tr><td colspan="2"></td></tr>
        <tr>
            <td>
                <table>
                    <thead>
                    <tr>
                        <th style="text-align: center"><spring:message code="table.head.supplier.code"/></th>
                        <th style="text-align: center"><spring:message code="table.head.supplier.name"/></th>
                        <th style="text-align: center"><spring:message code="table.head.ipic.month"/></th>
                        <th style="text-align: center"><spring:message code="table.head.ppm.month"/></th>
                    </tr>
                    </thead>
                    <tbody>
                    <c:forEach items="${entityList}" var="entity">
                        <tr>
                            <td style="text-align: center">${entity.supplierCode}</td>
                            <td>${entity.supplierName}</td>
                            <td style="text-align: center">${entity.ipicAccumulate}</td>
                            <td style="text-align: center">${entity.ppmAccumulate}</td>
                        </tr>
                    </c:forEach>
                    </tbody>
                </table>
            </td>
            <td>
                <div>
                    <img src="${path}${imagePath}" width="400" height="400">
                </div>
            </td>
        </tr>
    </table>
</div>
</form>
<div id="operateDialog" class="easyui-dialog"
     data-options="iconCls:'icon-save',resizable:true,modal:true,closed: true,collapsible:true,maximizable:true">
    <iframe scrolling="auto" id='operateIFrame' frameborder="0"  src="" style="width:100%;height:100%;"/>
</div>
</body>
</html>